import request from '@/utils/request'

export default {
    list() {
        return request({
            url: '/eduservice/teacher/list',
            method: 'get',
        });
    },
    getAllTeacher(teacherQuery) {
        return request({
            url: '/eduservice/teacher/pageCondition',
            method: 'post',
            data: teacherQuery
        });
    },
    deleteTeacher(id) {
        return request({
            url: `/eduservice/teacher/${id}`,
            method: 'delete',
        });
    },
    saveTeacher(eduTeacher) {
        return request({
            url: `/eduservice/teacher`,
            method: 'post',
            data: eduTeacher
        });
    },
    updateTeacher(eduTeacher) {
        return request({
            url: `/eduservice/teacher`,
            method: 'put',
            data: eduTeacher
        });
    },
    getTeacherById(id) {
        return request({
            url: `/eduservice/teacher/${id}`,
            method: 'get',
        });
    },
}